package com.sportmall.service;

import com.sportmall.common.ServerResponse;
import com.sportmall.pojo.User;
import com.sportmall.vo.UserVo;

public interface IUserService {
    ServerResponse<UserVo> userLogin(String username, String password);

    ServerResponse userRegister(User user);

    ServerResponse selectUserInfo(Integer userId);

    ServerResponse updateUser(Integer userId, User user);

    ServerResponse resetPassword(Integer userId, String oldPassword, String newPassword);

    ServerResponse checkUserValid(String username);

    ServerResponse forgetSelectQuestion(String username);

    ServerResponse forgetCheckAnswer(String username, String question, String answer);

    ServerResponse forgetResetPassword(String username, String forgetToken, String newPassword);
}
